home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20021006-20030409
/
000272_tom.horsley@att.net_Mon Feb 10 10:07:20 EST 2003.msg
< prev
next >
Wrap
Text File
|
2003-04-08
|
3KB
|
70 lines
Article: 14066 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!nycmny1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.gtei.net!wn12feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail
Sender: tom@SPIKE
Newsgroups: comp.protocols.kermit.misc
Subject: Re: input pattern matching blowing my mind...
References: <uisvwssje.fsf@att.net> <b213u0$i95$1@watsol.cc.columbia.edu> <u8ywrd5o8.fsf@att.net> <b26i6b$iiv$1@watsol.cc.columbia.edu> <b26i8f$il0$1@watsol.cc.columbia.edu>
From: tom.horsley@att.net (Thomas A. Horsley)
Message-ID: <uel6glv7y.fsf@att.net>
Lines: 49
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: b1e191106e3fcadfd6c50bb9b8c6e673
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1044844465 b1e191106e3fcadfd6c50bb9b8c6e673 (Mon, 10 Feb 2003 02:34:25 GMT)
NNTP-Posting-Date: Mon, 10 Feb 2003 02:34:25 GMT
Organization: AT&T Worldnet
Date: Mon, 10 Feb 2003 02:34:25 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14066
: I still haven't had a chance to look at the source code, but let me just
: ask if it makes a difference if you remove the braces...
I tried this:
set input case observe
output ssh-add\13
while 1 {
minput 10 {try again: } {\%1> } \Fpattern(Enter?passphrase?for*:?)
if failure { break }
if = \v(minput) 2 { break }
askq /GUI \%p \v(inmatch)
output \%p\13
}
And it doesn't work (never seems to match, times out). I also tried this:
set input case observe
output ssh-add\13
while 1 {
minput 10 {try again: } {\%1> } \Fpattern(Enter passphrase for*:?)
if failure { break }
if = \v(minput) 2 { break }
askq /GUI \%p \v(inmatch)
output \%p\13
}
And it does match something, unfortunately it matches the "Enter"
and then the "passphrase" (but curiously, not the for*:?) so I
get two separate prompts.
Also tried this variation:
set input case observe
output ssh-add\13
while 1 {
minput 10 {try again: } {\%1> } {\Fpattern(Enter passphrase for*:?)}
if failure { break }
if = \v(minput) 2 { break }
askq /GUI \%p \v(inmatch)
output \%p\13
}
And it never matches, but times out. Whatever is going on seems fun if
nothing else :-).
--
>>==>> The *Best* political site <URL:http://www.vote-smart.org/> >>==+
email: Tom.Horsley@worldnet.att.net icbm: Delray Beach, FL |
<URL:http://home.att.net/~Tom.Horsley> Free Software and Politics <<==+